package com.toby.ioc.iocprinciple;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @desc: ioc原理解析 启动
 * @author: toby
 * @date: 2019/7/22 22:20
 */
public class PrincipleMain {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(PrincipleConfig.class);
        System.out.println(context.getBean(PrincipleService.class));
    }
}
